#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'cli_page.ui'
#
# Created: Wed May  6 12:29:02 2009
#      by: PyQt4 UI code generator 4.4.3
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_CliSettingsPage(object):
	def setupUi(self, CliSettingsPage):
		CliSettingsPage.setObjectName("CliSettingsPage")
		CliSettingsPage.resize(274, 366)
		self.verticalLayout_2 = QtGui.QVBoxLayout(CliSettingsPage)
		self.verticalLayout_2.setObjectName("verticalLayout_2")
		self.groupBox = QtGui.QGroupBox(CliSettingsPage)
		self.groupBox.setFlat(False)
		self.groupBox.setCheckable(False)
		self.groupBox.setObjectName("groupBox")
		self.formLayout = QtGui.QFormLayout(self.groupBox)
		self.formLayout.setObjectName("formLayout")
		self.label = QtGui.QLabel(self.groupBox)
		self.label.setTextFormat(QtCore.Qt.PlainText)
		self.label.setWordWrap(False)
		self.label.setObjectName("label")
		self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
		self._iInetWait = QtGui.QSpinBox(self.groupBox)
		self._iInetWait.setAccelerated(True)
		self._iInetWait.setMaximum(600)
		self._iInetWait.setSingleStep(10)
		self._iInetWait.setProperty("value", QtCore.QVariant(30))
		self._iInetWait.setObjectName("_iInetWait")
		self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self._iInetWait)
		self.label_2 = QtGui.QLabel(self.groupBox)
		self.label_2.setTextFormat(QtCore.Qt.PlainText)
		self.label_2.setWordWrap(False)
		self.label_2.setObjectName("label_2")
		self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_2)
		self._iInetRepeat = QtGui.QSpinBox(self.groupBox)
		self._iInetRepeat.setAccelerated(True)
		self._iInetRepeat.setMinimum(0)
		self._iInetRepeat.setMaximum(5)
		self._iInetRepeat.setSingleStep(1)
		self._iInetRepeat.setProperty("value", QtCore.QVariant(3))
		self._iInetRepeat.setObjectName("_iInetRepeat")
		self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self._iInetRepeat)
		self.verticalLayout_2.addWidget(self.groupBox)
		self.horizontalLayout = QtGui.QHBoxLayout()
		self.horizontalLayout.setObjectName("horizontalLayout")
		self.groupBox_2 = QtGui.QGroupBox(CliSettingsPage)
		self.groupBox_2.setFlat(False)
		self.groupBox_2.setObjectName("groupBox_2")
		self.verticalLayout = QtGui.QVBoxLayout(self.groupBox_2)
		self.verticalLayout.setObjectName("verticalLayout")
		self._cbOnstartNews = QtGui.QCheckBox(self.groupBox_2)
		self._cbOnstartNews.setChecked(True)
		self._cbOnstartNews.setObjectName("_cbOnstartNews")
		self.verticalLayout.addWidget(self._cbOnstartNews)
		self._cbOnstartAuto = QtGui.QCheckBox(self.groupBox_2)
		self._cbOnstartAuto.setChecked(True)
		self._cbOnstartAuto.setObjectName("_cbOnstartAuto")
		self.verticalLayout.addWidget(self._cbOnstartAuto)
		self._cbOnstartForce = QtGui.QCheckBox(self.groupBox_2)
		self._cbOnstartForce.setObjectName("_cbOnstartForce")
		self.verticalLayout.addWidget(self._cbOnstartForce)
		self.horizontalLayout.addWidget(self.groupBox_2)
		self.groupBox_3 = QtGui.QGroupBox(CliSettingsPage)
		self.groupBox_3.setObjectName("groupBox_3")
		self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_3)
		self.gridLayout_2.setObjectName("gridLayout_2")
		self._iPeriodNews = QtGui.QSpinBox(self.groupBox_3)
		self._iPeriodNews.setAccelerated(True)
		self._iPeriodNews.setMinimum(0)
		self._iPeriodNews.setMaximum(1440)
		self._iPeriodNews.setSingleStep(10)
		self._iPeriodNews.setProperty("value", QtCore.QVariant(20))
		self._iPeriodNews.setObjectName("_iPeriodNews")
		self.gridLayout_2.addWidget(self._iPeriodNews, 0, 0, 1, 1)
		self.label_3 = QtGui.QLabel(self.groupBox_3)
		self.label_3.setObjectName("label_3")
		self.gridLayout_2.addWidget(self.label_3, 0, 1, 1, 1)
		self._iPeriodAuto = QtGui.QSpinBox(self.groupBox_3)
		self._iPeriodAuto.setAccelerated(True)
		self._iPeriodAuto.setMinimum(0)
		self._iPeriodAuto.setMaximum(96)
		self._iPeriodAuto.setSingleStep(1)
		self._iPeriodAuto.setProperty("value", QtCore.QVariant(6))
		self._iPeriodAuto.setObjectName("_iPeriodAuto")
		self.gridLayout_2.addWidget(self._iPeriodAuto, 1, 0, 1, 1)
		self.label_4 = QtGui.QLabel(self.groupBox_3)
		self.label_4.setObjectName("label_4")
		self.gridLayout_2.addWidget(self.label_4, 1, 1, 1, 1)
		self._iPeriodForce = QtGui.QSpinBox(self.groupBox_3)
		self._iPeriodForce.setAccelerated(True)
		self._iPeriodForce.setMinimum(0)
		self._iPeriodForce.setMaximum(90)
		self._iPeriodForce.setSingleStep(1)
		self._iPeriodForce.setProperty("value", QtCore.QVariant(7))
		self._iPeriodForce.setObjectName("_iPeriodForce")
		self.gridLayout_2.addWidget(self._iPeriodForce, 2, 0, 1, 1)
		self.label_5 = QtGui.QLabel(self.groupBox_3)
		self.label_5.setObjectName("label_5")
		self.gridLayout_2.addWidget(self.label_5, 2, 1, 1, 1)
		self.horizontalLayout.addWidget(self.groupBox_3)
		self.verticalLayout_2.addLayout(self.horizontalLayout)
		self.gridLayout = QtGui.QGridLayout()
		self.gridLayout.setObjectName("gridLayout")
		self._cbDelNews = QtGui.QCheckBox(CliSettingsPage)
		self._cbDelNews.setMinimumSize(QtCore.QSize(201, 0))
		self._cbDelNews.setObjectName("_cbDelNews")
		self.gridLayout.addWidget(self._cbDelNews, 0, 0, 1, 1)
		self._iDelNewsPeriod = QtGui.QSpinBox(CliSettingsPage)
		self._iDelNewsPeriod.setEnabled(False)
		self._iDelNewsPeriod.setAccelerated(True)
		self._iDelNewsPeriod.setMinimum(1)
		self._iDelNewsPeriod.setMaximum(120)
		self._iDelNewsPeriod.setProperty("value", QtCore.QVariant(7))
		self._iDelNewsPeriod.setObjectName("_iDelNewsPeriod")
		self.gridLayout.addWidget(self._iDelNewsPeriod, 0, 1, 1, 1)
		self._cbUpdateHtml = QtGui.QCheckBox(CliSettingsPage)
		self._cbUpdateHtml.setChecked(True)
		self._cbUpdateHtml.setObjectName("_cbUpdateHtml")
		self.gridLayout.addWidget(self._cbUpdateHtml, 1, 0, 1, 1)
		self.label_6 = QtGui.QLabel(CliSettingsPage)
		self.label_6.setObjectName("label_6")
		self.gridLayout.addWidget(self.label_6, 2, 0, 1, 1)
		self._sCliParams = QtGui.QLineEdit(CliSettingsPage)
		self._sCliParams.setMinimumSize(QtCore.QSize(221, 0))
		self._sCliParams.setMaxLength(4000)
		self._sCliParams.setObjectName("_sCliParams")
		self.gridLayout.addWidget(self._sCliParams, 3, 0, 1, 2)
		self.verticalLayout_2.addLayout(self.gridLayout)
		self.label.setBuddy(self._iInetWait)
		self.label_2.setBuddy(self._iInetRepeat)
		self.label_3.setBuddy(self._iPeriodNews)
		self.label_4.setBuddy(self._iPeriodAuto)
		self.label_5.setBuddy(self._iPeriodForce)
		self.label_6.setBuddy(self._sCliParams)

		self.retranslateUi(CliSettingsPage)
		QtCore.QObject.connect(self._cbDelNews, QtCore.SIGNAL("toggled(bool)"), self._iDelNewsPeriod.setEnabled)
		QtCore.QMetaObject.connectSlotsByName(CliSettingsPage)

	def retranslateUi(self, CliSettingsPage):
		self.groupBox.setTitle(QtGui.QApplication.translate("CliSettingsPage", "Internet check:", None, QtGui.QApplication.UnicodeUTF8))
		self.label.setText(QtGui.QApplication.translate("CliSettingsPage", "Wait if not available, sec:", None, QtGui.QApplication.UnicodeUTF8))
		self._iInetWait.setToolTip(QtGui.QApplication.translate("CliSettingsPage", "How many seconds wait if internet connection is unavailable", None, QtGui.QApplication.UnicodeUTF8))
		self.label_2.setText(QtGui.QApplication.translate("CliSettingsPage", "Repeat, times:", None, QtGui.QApplication.UnicodeUTF8))
		self._iInetRepeat.setToolTip(QtGui.QApplication.translate("CliSettingsPage", "Internet availability check repeat count. Set to <b>0</b> to disable.", None, QtGui.QApplication.UnicodeUTF8))
		self.groupBox_2.setTitle(QtGui.QApplication.translate("CliSettingsPage", "Check on start", None, QtGui.QApplication.UnicodeUTF8))
		self._cbOnstartNews.setToolTip(QtGui.QApplication.translate("CliSettingsPage", "Find news by site digest on startup", None, QtGui.QApplication.UnicodeUTF8))
		self._cbOnstartNews.setText(QtGui.QApplication.translate("CliSettingsPage", "News", None, QtGui.QApplication.UnicodeUTF8))
		self._cbOnstartAuto.setToolTip(QtGui.QApplication.translate("CliSettingsPage", "Scan index and forced pages on startup", None, QtGui.QApplication.UnicodeUTF8))
		self._cbOnstartAuto.setText(QtGui.QApplication.translate("CliSettingsPage", "Pages/auto ", None, QtGui.QApplication.UnicodeUTF8))
		self._cbOnstartForce.setToolTip(QtGui.QApplication.translate("CliSettingsPage", "Scan <b>all</b> pages on all authors on startup. Ignore saved sizes and timestamps", None, QtGui.QApplication.UnicodeUTF8))
		self._cbOnstartForce.setText(QtGui.QApplication.translate("CliSettingsPage", "Force all ", None, QtGui.QApplication.UnicodeUTF8))
		self.groupBox_3.setTitle(QtGui.QApplication.translate("CliSettingsPage", "Periodical check ", None, QtGui.QApplication.UnicodeUTF8))
		self._iPeriodNews.setToolTip(QtGui.QApplication.translate("CliSettingsPage", "Scan site digest every ... minutes", None, QtGui.QApplication.UnicodeUTF8))
		self.label_3.setText(QtGui.QApplication.translate("CliSettingsPage", "min", None, QtGui.QApplication.UnicodeUTF8))
		self._iPeriodAuto.setToolTip(QtGui.QApplication.translate("CliSettingsPage", "Scan index and forced pages every ... hours", None, QtGui.QApplication.UnicodeUTF8))
		self.label_4.setText(QtGui.QApplication.translate("CliSettingsPage", "hours", None, QtGui.QApplication.UnicodeUTF8))
		self._iPeriodForce.setToolTip(QtGui.QApplication.translate("CliSettingsPage", "Full scan <b>all</b> pages and all authors every ... days", None, QtGui.QApplication.UnicodeUTF8))
		self.label_5.setText(QtGui.QApplication.translate("CliSettingsPage", "days", None, QtGui.QApplication.UnicodeUTF8))
		self._cbDelNews.setToolTip(QtGui.QApplication.translate("CliSettingsPage", "Allow purging items in news file", None, QtGui.QApplication.UnicodeUTF8))
		self._cbDelNews.setText(QtGui.QApplication.translate("CliSettingsPage", "Delete news older than, days:", None, QtGui.QApplication.UnicodeUTF8))
		self._iDelNewsPeriod.setToolTip(QtGui.QApplication.translate("CliSettingsPage", "Purge items in news file older than ... days", None, QtGui.QApplication.UnicodeUTF8))
		self._cbUpdateHtml.setToolTip(QtGui.QApplication.translate("CliSettingsPage", "Create/update HTML news tree file", None, QtGui.QApplication.UnicodeUTF8))
		self._cbUpdateHtml.setText(QtGui.QApplication.translate("CliSettingsPage", "Update HTML news", None, QtGui.QApplication.UnicodeUTF8))
		self.label_6.setText(QtGui.QApplication.translate("CliSettingsPage", "Extra params to console app:", None, QtGui.QApplication.UnicodeUTF8))


if __name__ == "__main__":
	import sys
	app = QtGui.QApplication(sys.argv)
	CliSettingsPage = QtGui.QDialog()
	ui = Ui_CliSettingsPage()
	ui.setupUi(CliSettingsPage)
	CliSettingsPage.show()
	sys.exit(app.exec_())

